package net.muchine.core.service.user;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import net.muchine.core.service.user.PreferenceService;
import net.muchine.core.dao.user.PreferenceDao;
import net.muchine.core.domain.user.Preference;
import net.muchine.core.service.GenericServiceImpl;

@Component
public class PreferenceServiceImpl extends GenericServiceImpl<Preference, Long>
		implements PreferenceService {
	@Autowired private PreferenceDao dao;
	
	@Override
	public void setGenericDao() {
		this.setDao(dao);
	}

	public Preference findByUserSeq(Long seq) {
		return dao.findByUserSeq(seq);
	}
}
